<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="../templates/mainTemplate.xhtml">
	<ui:define name="content">
		<div class="box">
			<h2>
				<a id="toggle-change-password" href="#"><h:outputText
						value="#{msg['changepassword.form']}" /></a>
			</h2>
			<div id="change-password" class="block forms">
				<h:form id="change-password-form">
					<fieldset>
						<legend>
							<h:outputText value="#{msg['changepassword.notice']}" />
						</legend>
						<p:message for="confirmButton" showSummary="false" />
						<p:message for="password1" showSummary="false" />

						<p>
							<label><h:outputText
									value="#{msg['loginLogoutMenu.pass']}" /></label>
							<p:inputText id="password1" value="#{changePasswordBean.pass1}"
								type="password" required="true"
								label="#{msg['loginLogoutMenu.password1']}"
								title="#{msg['register.ToolTip.password']}" />
							<p:tooltip for="password1" showEffect="fade" hideEffect="fade" />
						</p>

						<p:message for="password2" showSummary="false" />
						<p>
							<label><h:outputText
									value="#{msg['loginLogoutMenu.repass']}" /></label>
							<p:inputText id="password2" value="#{changePasswordBean.pass2}"
								type="password" required="true"
								label="#{msg['loginLogoutMenu.password1']}"
								title="#{msg['register.ToolTip.password']}" />
							<p:tooltip for="password2" showEffect="fade" hideEffect="fade" />
						</p>

						<p:commandButton id="confirmButton"
							action="#{changePasswordBean.save}"
							binding="#{changePasswordBean.button}"
							update="change-password-form"
							value="#{msg['loginLogoutMenu.confirm']}" style="width: 100%" />
					</fieldset>
				</h:form>
			</div>
		</div>
	</ui:define>
</ui:composition>

</html>
